import 'package:flutter/material.dart';
import 'package:flutter_juwo/common/common_index.dart';
import 'package:flutter_juwo/ui/pages/personalCenterPages/ts/census/member_view.dart';

/// Created by DongKing on 2020/10/12
/// Version 1.0
/// Describe:会员统计

class Member extends StatefulWidget {
  @override
  _MemberState createState() => _MemberState();
}

class _MemberState extends State<Member> {

  var data = [
    {
      "time": "2020/09/21 17:21", //加入时间
      "phone": "13012334322", //手机号
      "real_name": false, //是否实名
      "is_vip": false, //是否是vip
      "join_type": "直接邀请", //加入方式
      "last_time": "2020/10/21 17:21", //最后一次做单时时间
      "join_days": "21", //加入平台多少天
      "all_order": "211", //累计做单
      "all_contribution": "2183.6", //累计贡献
      "num_account_tb": "0", //账号数量 淘宝
      "num_account_jd": "1", //账号数量 京东
      "num_account_pdd": "2", //账号数量 拼多多
      "num_account_dy": "3", //账号数量 抖音
      "num_account_ks": "1"//账号数量 快手
    },
    {
      "time": "2020/09/21 17:21", //加入时间
      "phone": "13012334322", //手机号
      "real_name": false, //是否实名
      "is_vip": false, //是否是vip
      "join_type": "直接邀请", //加入方式
      "last_time": "2020/10/21 17:21", //最后一次做单时时间
      "join_days": "21", //加入平台多少天
      "all_order": "211", //累计做单
      "all_contribution": "2183.6", //累计贡献
      "num_account_tb": "0", //账号数量 淘宝
      "num_account_jd": "1", //账号数量 京东
      "num_account_pdd": "2", //账号数量 拼多多
      "num_account_dy": "3", //账号数量 抖音
      "num_account_ks": "1"//账号数量 快手
    },
    {
      "time": "2020/09/21 17:21", //加入时间
      "phone": "13012334322", //手机号
      "real_name": false, //是否实名
      "is_vip": false, //是否是vip
      "join_type": "直接邀请", //加入方式
      "last_time": "2020/10/21 17:21", //最后一次做单时时间
      "join_days": "21", //加入平台多少天
      "all_order": "211", //累计做单
      "all_contribution": "2183.6", //累计贡献
      "num_account_tb": "0", //账号数量 淘宝
      "num_account_jd": "1", //账号数量 京东
      "num_account_pdd": "2", //账号数量 拼多多
      "num_account_dy": "3", //账号数量 抖音
      "num_account_ks": "1"//账号数量 快手
    }
  ];

  @override
  Widget build(BuildContext context) {

    return Scaffold(
      backgroundColor: Colours.cbg1,
      appBar: UiUtils.appHomeBar(context, "会员统计"),
      body: _body(),
    );
  }

  _body() {
    return Column(
      children: <Widget>[
        MemberView.census(3821, 1002, 1500, 800),
        MemberView.circular(),
        MemberView.memberList(data),
      ],
    );
  }
}
